{include file="admin/top.php" subject='suppliers'}
{include file="suppliers/top.php" subject='suppliers'}
<div id="content">
  <form method="post">
    <table width="100%" border="0" cellpadding="5" cellspacing="0" id="editor">
      <tr>
        <td width="100" class="title">供应商名称:</td>
        <td width="240" class="content"><input name="title" type="text" id="title" value="{$smarty.post.title}" size="30" /> 
          *</td>
        <td width="821" class="content">
        {if $errors.empty_title}<span class="warning">供应商名称不能为空</span>
        {elseif $errors.exist_title}<span class="warning">该供应商名称已存在</span>
        {else}输出供应商名称
        {/if}        </td>
      </tr>
      <tr>
        <td class="title">负责人:</td>
        <td class="content">
        	<select name="classid">
        		<option value="">指定负责人</option>
        		{classes}
        			<option value="{$classes.id}">{$classes.title}</option>
        		{/classes}
        	</select>*
        </td>
        <td class="content">
        {if $errors.empty_classtitle}<span class="warning">负责人不能为空</span>
        {else}选择负责人
        {/if}
        </td>
      </tr>      
      
      <tr>
        <td class="title">仓库:</td>
        <td class="content">
        	<select name="shopid">
        		{shops}
        			<option value="{$shops.id}" {if $smarty.get.shopid==$shops.id}selected{/if} {if 1==$shops.disabled}disabled{/if}>{$shops.title}</option>
        		{/shops}
        	</select>*
        </td>
        <td class="content">
        		选择仓库
        </td>
      </tr>  
      <tr>
      	<td class="title">是否通用:</td>
        <td class="content">
        	<input name="is_general" type="radio" id="is_general" value="0" {if $smarty.post.is_general==0}checked{/if}/>否
        	<input name="is_general" type="radio" id="is_general" value="1" {if $smarty.post.is_general==1}checked{/if}/>是
    	</td>
        <td class="content">&nbsp;</td>
      </tr>
      <tr>
        <td class="title">联系人:</td>
        <td class="content"><input name="linkman" type="text" id="linkman" value="{$smarty.post.linkman}" size="30" /></td>
        <td class="content">&nbsp;</td>
      </tr>
      <tr>
        <td class="title">联系电话:</td>
        <td class="content"><input name="phone" type="text" id="phone" value="{$smarty.post.phone}" size="30" /></td>
        <td class="content">&nbsp;</td>
      </tr>
      <tr>
        <td class="title">联系地址:</td>
        <td class="content"><input name="address" type="text" id="address" value="{$smarty.post.address}" size="30" /></td>
        <td class="content">&nbsp;</td>
      </tr>
      <tr class="noline">
        <td class="title">备注说明:</td>
        <td colspan="2" class="content"><textarea name="memo" cols="60" rows="5" id="memo">{$smarty.post.memo}</textarea></td>
      </tr>
    </table>
    
    <div class="fr mt10">
    <input type="submit" value="添加" class="btn" />
    <a href="#" class="btn" onclick="history.back();">取消</a> 
    <input name="action" type="hidden" id="action" value="create" />
    </div>
  </form>
</div>
{include file="admin/bottom.php"}
</body>
</html>
